package com.dnjn.happiness.emo.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.annotation.Excel;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 家庭记录对象 emo_user
 * 
 * @author happiness
 * @date 2023-10-13
 */
@Schema(name = "User", description = "家庭记录")
@Accessors(chain = true)
@Getter
@Setter
@TableName("emo_user")
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** PK */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId
    private Long userId;

    /** 用户名称 */
    @Schema(description = "用户名称")
    @Excel(name = "用户名称")
    private String nickName;

    /** 快乐值 */
    @Schema(description = "快乐值")
    @Excel(name = "快乐值")
    private Long happinessScore;

    /** 快乐豆 */
    @Schema(description = "快乐豆")
    @Excel(name = "快乐豆")
    private Long hlbean;

    /** 今日新增快乐豆 */
    @Schema(description = "今日新增快乐豆")
    @Excel(name = "今日新增快乐豆")
    private Long hlbeanToday;

    /** 是否删除|0-否 1-是|valid */
    @Schema(description = "是否删除|0-否 1-是|valid")
    @Excel(name = "是否删除|0-否 1-是|valid")
    private String deleted;


    private Integer workDate;

    
    

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("nickName", getNickName())
            .append("happinessScore", getHappinessScore())
            .append("hlbean", getHlbean())
            .append("hlbeanToday", getHlbeanToday())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .append("version", getVersion())
            .toString();
    }
}
